package dao

import (
	"Junior_two/subject/cart/cartrpc/model"
	"github.com/astaxie/beego/orm"
)

func MyId(id int64) model.Goods {
	g := model.Goods{
		Id: id,
	}
	o := orm.NewOrm()
	err := o.Read(&g, "id")
	if err != nil {
		return model.Goods{}
	}
	return g
}
